﻿
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;

public class UI_Title : MonoBehaviour
{
    public Action TilteAnimationDoneEvent;
    [SerializeField]
    private UI_Animation_ReadyTime m_readyAnimation;
    [SerializeField]
    private UI_Animation_Title m_titleAnimation;

    private void Start()
    {
        m_titleAnimation.FadeDonEvent += () =>
        {
            this.gameObject.SetActive(false);
            if (TilteAnimationDoneEvent != null) TilteAnimationDoneEvent.Invoke();
        };
    }



    public void SetReadyTime(int pCurReadyTime)
    {
        m_readyAnimation.ShowCurTimeAnimation(pCurReadyTime);
    }




}
